package com.onegene.pdf.component.report.cancer;

import com.itextpdf.layout.element.Cell;
import com.itextpdf.layout.element.Paragraph;
import com.itextpdf.layout.property.TextAlignment;

/**
 * @author: laoliangliang
 * @description:
 * @create: 2020/5/20 8:34
 **/
public class CancerComponent {

    public static Cell getDefaultCell() {
        return new Cell().addStyle(CancerStyle.getDefaultCell());
    }
    public static Paragraph getExamineeParagraph(String text) {
        return new Paragraph(text).addStyle(CancerStyle.getExamineeStyle());
    }
    public static Paragraph getSignParagraph(String text) {
        return new Paragraph(text).addStyle(CancerStyle.getSignStyle());
    }

    public static Cell getSimpleDescCell() {
        return new Cell().addStyle(CancerStyle.getSimpleDescCell());
    }

    public static Cell getTableCell() {
        return new Cell().setTextAlignment(TextAlignment.CENTER).addStyle(CancerStyle.getTableCell());
    }
}